﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MC.RideEventMVC.Models
{
    public class EventModel
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Intitulé" )]
        [StringLength(50)]
        public string Title { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Description")]
        public string Description { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Lieu")]
        public string  PlaceName { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Adresse")]
        public string Address { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Ville")]
        public string City { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Cp")]
        public string Cp { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Date début")]
        public DateTime DateBegin { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Date fin")]
        public DateTime DateEnd { get; set; }

        [Display(Name = "Lien")]
        public string Link { get; set; }

        public bool Activated { get; set; }
    }
}